import {Injector} from '@angular/core';
import {Router} from '@angular/router';
import {HttpService} from './http.service';
import {API_CONFIG} from '../services.module';

export abstract class BaseService {

  router: Router;
  uri: string;
  httpServer: HttpService;

  constructor(public injector: Injector) {
    this.router = this.injector.get(Router);
    this.uri = this.injector.get(API_CONFIG);
    this.httpServer = this.injector.get(HttpService);
  }
}
